package com.peak.distribution.web.pay;

import java.util.Map;

import com.google.common.collect.Maps;
import com.peak.distribution.pay.alipay.request.AlipayRequest;
import com.peak.spring.boot.tools.DatePattern;
import com.peak.spring.boot.tools.Dates;
import com.peak.spring.boot.tools.HttpClients;

public class AlipayController {

	public static void main(String[] args) {
		AlipayRequest request = new AlipayRequest();
		request.setApp_id("");
		request.setMethod("alipay.trade.wap.pay");
		request.setTimestamp(Dates.format(Dates.now(), DatePattern.SHORT_LINE_TIME));
		
		Map<String, String> param = Maps.newHashMap();
		HttpClients.post("https://openapi.alipay.com/gateway.do", param);
	}
}
